package org.anjan.dp.abstractfactory;

import org.anjan.dp.abstractfactory.shipbuilding.SailShipBuilder;


public class Main {
    public static void main(String[] args) {
//        ShipBuilder handles orders for new ships
//        You can send it a code using order the ship method and it
//        would send the order to the right factory.
        ShipBuilder shipBuilder = new SailShipBuilder();
        shipBuilder.orderTheShip("Diesel");
        shipBuilder.orderTheShip("Petrol");
    }
}
